home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Utilities / Mac⁄gnuucp 6.14 / source / uuxqt_top.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-08-14  |  614 b   |  34 lines  |  [TEXT/KAHL]

  1. /*  uuxqt.c: Lol Grant. 23rd. Sept 1987.
  2.          read uucp C.<hostname>XXXXX files and execute the
  3.          commands in them.
  4. */
  5.  
  6. #include "includes.h"
  7. #include "uucp.h"
  8. #include "rmail_proto.h"
  9.  
  10. #define RMAIL
  11.  
  12. main(argc, argv)
  13. int argc;
  14. char **argv;
  15. {
  16.     int i;
  17.     int debug;
  18.     for (i = 1; i < argc; i++)
  19.         {
  20.             if (argv[i][0] != '-')
  21.                 break;
  22.             switch (argv[i][1])
  23.                 {
  24.                     default:
  25.                         printf("uuxqt: unknown flag ignored\n");
  26.                     case 'x':
  27.                         debug = atoi(&argv[i][2]);
  28.                         printf("uuxqt: debug level set to %d\n", debug);
  29.                         break;
  30.                     }
  31.             }
  32.     return(uuxqt(debug));
  33.     }
  34.